import 'package:flutter/cupertino.dart';

final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
BuildContext getContext({BuildContext? context}) {
  if (context != null) {
    return context;
  }
  return navigatorKey.currentContext!;
}